﻿// =================================================================== 
// 项目说明
//====================================================================
// 文件： ERP_LendSale.cs
// 创建时间：2016/12/20
// 负责人：
// ===================================================================
using System;

//注意：该文件自动生成，一般请不要手工修改。

namespace CRMMis.Model
{
	/// <summary>
	///销售借出结算汇总(ERP_LendSale)数据实体
	/// </summary>
	[Serializable]
	public class ERP_LendSale
	{
		#region 变量定义
		
		///<summary>
		///编号
		///</summary>
		private int _id;
		
		///<summary>
		///销售人员
		///</summary>
		private string _saler = String.Empty;
		
		///<summary>
		///年
		///</summary>
		private int _year;
		
		///<summary>
		///月
		///</summary>
		private int _month;
		
		///<summary>
		///上月销售剩余数量
		///</summary>
		private int _lastCount;
		
		///<summary>
		///上月销售剩余金额
		///</summary>
		private decimal _lastMonry;
		
		///<summary>
		///本月借出数量
		///</summary>
		private int _lendCount;
		
		///<summary>
		///本月借出金额
		///</summary>
		private decimal _lendMoney;
		
		///<summary>
		///本月结算数量
		///</summary>
		private int _salePayCount;
		
		///<summary>
		///本月结算金额
		///</summary>
		private decimal _salePayMoney;
		
		///<summary>
		///生成人
		///</summary>
		private string _inUser = String.Empty;
		
		///<summary>
		///生成时间
		///</summary>
		private string _inDate = String.Empty;
		#endregion
		
		#region 构造函数

		///<summary>
		///销售借出结算汇总的构造函数，默认值通过数据库的default取得
		///</summary>
		public ERP_LendSale()
		{
 
		}
		///<summary>
		///销售借出结算汇总
		///</summary>
		public ERP_LendSale
		(
			int id,
			string saler,
			int year,
			int month,
			int lastCount,
			decimal lastMonry,
			int lendCount,
			decimal lendMoney,
			int salePayCount,
			decimal salePayMoney,
			string inUser,
			string inDate
		)
		{
			_id           = id;
			_saler        = saler;
			_year         = year;
			_month        = month;
			_lastCount    = lastCount;
			_lastMonry    = lastMonry;
			_lendCount    = lendCount;
			_lendMoney    = lendMoney;
			_salePayCount = salePayCount;
			_salePayMoney = salePayMoney;
			_inUser       = inUser;
			_inDate       = inDate;
			
		}
		
		

		#endregion
		
		#region 公共属性

		
		
		///<summary>
		///编号
		///</summary>
		public int Id
		{
			get {return _id;}
			set {_id = value;}
		}

		
		///<summary>
		///销售人员
		///</summary>
		public string Saler
		{
			get {return _saler;}
			set {_saler = value;}
		}

		
		///<summary>
		///年
		///</summary>
		public int year
		{
			get {return _year;}
			set {_year = value;}
		}

		
		///<summary>
		///月
		///</summary>
		public int month
		{
			get {return _month;}
			set {_month = value;}
		}

		
		///<summary>
		///上月销售剩余数量
		///</summary>
		public int lastCount
		{
			get {return _lastCount;}
			set {_lastCount = value;}
		}

		
		///<summary>
		///上月销售剩余金额
		///</summary>
		public decimal lastMonry
		{
			get {return _lastMonry;}
			set {_lastMonry = value;}
		}

		
		///<summary>
		///本月借出数量
		///</summary>
		public int LendCount
		{
			get {return _lendCount;}
			set {_lendCount = value;}
		}

		
		///<summary>
		///本月借出金额
		///</summary>
		public decimal LendMoney
		{
			get {return _lendMoney;}
			set {_lendMoney = value;}
		}

		
		///<summary>
		///本月结算数量
		///</summary>
		public int SalePayCount
		{
			get {return _salePayCount;}
			set {_salePayCount = value;}
		}

		
		///<summary>
		///本月结算金额
		///</summary>
		public decimal SalePayMoney
		{
			get {return _salePayMoney;}
			set {_salePayMoney = value;}
		}

		
		///<summary>
		///生成人
		///</summary>
		public string InUser
		{
			get {return _inUser;}
			set {_inUser = value;}
		}

		
		///<summary>
		///生成时间
		///</summary>
		public string InDate
		{
			get {return _inDate;}
			set {_inDate = value;}
		}
	
		#endregion
		
	}
}